﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Adminitrator.master" AutoEventWireup="true" CodeFile="List.aspx.cs" Inherits="admin_Member_List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">     
 <h1 class="title">Quản lý thành viên</h1>
  <div class="search">
    <fieldset class="fieldset">
      <legend>Lọc hiển thị</legend>
      <table width="100%">
        <tr>
          <td style="width: 335px">
            <label>Kiểu thành viên</label>
            <asp:DropDownList ID="dropMod" runat="server" CssClass="dropdown"
              AutoPostBack="True" onselectedindexchanged="dropParent_SelectedIndexChanged" 
               Width="220px">
               <asp:ListItem Text="Tất cả thành viên" Value="2" />
              <asp:ListItem Text="Thành viên đăng ký tài khoản" Value="1" />
              <asp:ListItem Text="Thành viên đăng ký nhận Email" Value="0" />
               </asp:DropDownList>
          </td>   
   
        </tr>
      </table>
      </fieldset>
    </div>    
      <div id="gridview">
   <asp:GridView ID="gridView"  CssClass="tstyle1" runat="server" Width="100%" 
      EnableModelValidation="True" AutoGenerateColumns="False">
        <Columns>
          <asp:TemplateField HeaderText="Chọn">
            <ItemTemplate>
             <%#Container.DataItemIndex +1 %> 
            </ItemTemplate>
            <ItemStyle Width="45px" />
          </asp:TemplateField>
          <asp:BoundField DataField="Id" HeaderText="ID">
          <ItemStyle Width="35px" />
          </asp:BoundField>
           <asp:BoundField DataField="UserName" HeaderText="Tài khoản">
          <ItemStyle Width="120px" />
          </asp:BoundField>
          <asp:BoundField DataField="Name" HeaderText="Họ tên">
          <ItemStyle Width="120px" />
          </asp:BoundField>
          <asp:BoundField DataField="Email" HeaderText="Email">
          <ItemStyle Width="120px" />
          </asp:BoundField>
           <asp:BoundField DataField="Phone" HeaderText="Số ĐT">
          <ItemStyle Width="120px" />
          </asp:BoundField>
          <asp:BoundField DataField="TotalBuy" HeaderText="Doanh số mua">
          <ItemStyle Width="200px" />
          </asp:BoundField>
          <asp:BoundField DataField="CreateDate" HeaderText="Ngày đăng ký">
          <ItemStyle Width="140px" />
          </asp:BoundField>
        </Columns>
      </asp:GridView>
    </div>
      <div>
    <table style="width: 100%">
      <tr>
        <td align="left" valign="top" style="width: 158px">
            <asp:Button ID="btnExport" runat="server" Text="Xuất ra file Exel" 
        onclick="btnExport_Click" />
        </td>
        <td>
         <asp:Button ID="btnSendMail" runat="server" Text="Gửi mail cho khách hàng" 
            onclick="btnSendMail_Click" />
        </td>
      </tr>
    </table>
  </div>

  <div style="margin-top: 10px">
    <asp:Literal ID="lbThongBao" runat="server" />
  </div>
</asp:Content>


